package Demo1;

/**
 * ClassName Cat
 * Description TODO
 * Author Yanyan
 * Date 2025/11/10 21:49
 * Version 1.0
 */
public class Cat extends Animal{
    static {
        System.out.println("子类的静态代码块");
    }

    {
        System.out.println("子类的实例代码块");
    }

    public Cat() {
        super();
    }

    public Cat(String name, int age) {
        super(name,age);
        System.out.println("子类的构造方法");
    }

    public void memw() {
        System.out.println("喵喵喵");
    }

}
